package com.daon.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/2/20 12:38 PM
 * @Modified By
 */
@Getter
@Setter
@ToString
public class SysUserParam {

    private Integer userId;

    private String userTrueName = "";

    private Integer userSex = 1;//1:男，2：女

    private String userNickname = "";//昵称

    private String userPassword = "";

    private String userIdCard = "";

    private String userBirthday = "";

    private String userAvatar = "";

    private String userLastLoginIp = "";
    @Email
    private String userEmail = "";

    private Integer userDefaultSiteId = 0;

    private Integer userLabel = 1;//后台用户

    private Integer userStatus = 1;//默认启用

    private int isDelete = 2;

    @NotBlank(message="手机号不能为空")
    @Length(max=11, min=11, message = "手机号需要11个数字之间")
    private String userMobile;
    private String postId;
    private String roleId;
    @NotBlank(message="部门不能为空")
    private String deptId;
}
